package trade

import "github.com/gin-gonic/gin"

func Bind(relativePath string, engine *gin.Engine) {
	group := engine.Group(relativePath)
	{
		group.POST("/create", create)

		group.POST("/delete", delete)

		group.POST("/update", update)

		group.POST("/list", list)

		group.POST("/mycreate", myCreate)

		group.POST("/mydelete", myDelete)

		group.POST("/myupdate", myUpdate)

		group.POST("/mylist", myList)

		group.POST("/alllist", allList)

		group.POST("/goodstype", goodsType)

		group.POST("/buy", buy)

	}
}
